package com.wish.wishhouse_resource.controller;


import com.wish.wishhouse_resource.entity.SysRegion;
import com.wish.wishhouse_resource.service.ISysRegionService;
import org.springframework.web.bind.annotation.RequestMapping;

import org.springframework.web.bind.annotation.RestController;
import vo.ResultEntity;

import javax.annotation.Resource;
import java.util.List;

/**
 * <p>
 * 地区表 前端控制器
 * </p>
 *
 * @author cyy
 * @since 2021-03-30
 */
@RestController
@RequestMapping("/sysRegion")
public class SysRegionController {

    @Resource
    private ISysRegionService iSysRegionService;

    @RequestMapping("/regionlist")
    public ResultEntity list(){
        List<SysRegion> sysRegions = iSysRegionService.houseRegionList();
        return ResultEntity.ok("200","查询成功",sysRegions);
    }
}

